package pl.edu.agh.iosr.gamblingzone.model;

public aspect ModelNullCheck {
	pointcut callWithNull(Object arg): execution(public void pl.edu.agh.iosr.gamblingzone.model.*.set*(*)) && args(arg);
	
	before(Object arg): callWithNull(arg) {
		if (arg == null) {
			throw new IllegalStateException("Null value passed to: "+thisJoinPoint);
		}
	}
}